import React from "react";
import { Routes, Route, Link } from "react-router-dom";
import Home from "../Home/Home";
import About from "../Child/child";

function App1() {
  return (

      <div>
        <nav>
          <ul>
            <li>
              <Link to="/">Home</Link>
            </li>
            <li>
              <Link to="/about">About</Link>
            </li>
            
          </ul>
        </nav>
        <Routes>
        <Route exact path="/" element={<Home/>} />
        <Route path="/about" element={<About/>} />
        </Routes>
      </div>
  );
}
export default App1;